package game.bejeweled
{
	import starling.display.Image;
	import starling.textures.Texture;
	
	public class BackDrop extends Image
	{
		public function BackDrop(texture:Texture)
		{
			super(texture);
			this.touchable=false;
		}
		public var rowNum:int;
		public var column:int;
		public var isFull:Boolean=false;
		
		private var _ballX:Number;
		private var _ballY:Number;
		
		
		/**
		 *  
		 */		
		private var _currBall:Ball=null;

		public function get currBall():Ball
		{
			return _currBall;
		}

		public function set currBall(ball:Ball):void
		{
			if(ball){
				_currBall = ball;
				ball.rowNum=this.rowNum;
				ball.column=this.column;
				_ballX=(this.width>>1)+this.x;
				_ballY=(this.height>>1)+this.y;
				isFull=true;
			}else{
				isFull=false;
			}
		}

		
		/**
		 * 
		 * @return 
		 * 
		 */		
		public function get ballY():Number
		{
			return _ballY;
		}

		public function set ballY(value:Number):void
		{
			_ballY = value;
		}

		public function get ballX():Number
		{
			return _ballX;
		}

		public function set ballX(value:Number):void
		{
			_ballX = value;
		}
	}
}